<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>平台公告</title>
    <!-- 基本框架 -->
    <link rel="stylesheet" href="../../../css/common.css">
    <script src="../../../script/vue.min.js" type="text/javascript"></script>
    <script src="../../../script/frame.js" type="text/javascript"></script>
    <script src="../../../script/baseConfig.js" type="text/javascript"></script>
    <script src="../../../script/utils.js" type="text/javascript"></script>
    <script src="../../../script/common.js" type="text/javascript"></script>
    <style>
        body{
            background:rgba(0,0,0,0);
        }
        .layerContent{
            position:fixed;
            top:50%;
            left:50%;
            transform: translate(-50%,-50%);
            width:80%;
            z-index:1000;
            background:#FFF;
            overflow:hidden;
            border-radius:0.23rem;
        }
        .layerContent h3{
            color:#181818;
            font-weight:bold;
            height:1.2rem;
            line-height:1.3rem;
            text-align:center;
            font-size:0.36rem;
        }
        .layerContent p{
            padding:0 0.5rem;
            padding-bottom:0.4rem;
            display: block;
            color:#6B6A6A;
            font-size:0.3rem;
            line-height:0.55rem;
            -webkit-overflow-scrolling: touch;
            overflow-y:auto;
            max-height:5rem;
        }
        .layerContent button{
            color:#929292;
            background:#F9F9F9;
            text-align:center;
            height:1rem;
            line-height:1rem;
            font-size:0.31rem;
            display: block;
            width:100%;
        }
    </style>
</head>
<body>
    <div id="app" v-cloak>
        <div id="container">
            <div class="shadow"></div>
            <div class="layerContent">
                <h3>平台公告</h3>
                <p v-html="api.pageParam.str"></p>
                <button @click="closeNotice()">我知道了</button>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        apiready = function() {
            var app = new Vue({
                el:'#app',
                data:{
					iosTest:false,
                },
                methods:{
					closeNotice(){
						$.prefs.setItem('notice',md5(api.pageParam.str));
						api.closeFrame();
					}
                },
                mounted(){
					$.initJs(this);
                }
            });
			
			api.bringFrameToFront({
			    from: 'updateLayer'
			});
        }
    </script>
</body>
</html>
